<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="member.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>홈페이지명</title>
<jsp:include page="/Dmyna/style.css" />

<script type="text/javascript">
<!--
function win_open(url, name, option)
{
    var popup = window.open(url, name, option);
    popup.focus();
}

function logout(){
	alert("로그아웃 합니다");
	document.logout.submit();
}

//-->
</script>
</head>
<body>
<c:set var="WEB_ROOT" value="/Dmyna" />

<a name="dmyna_top"></a>
<form action="${WEB_ROOT }/Logout.do" method="post" name="logout">
</form>

<div id="dmyna_gnb">
	<c:choose>
		<c:when test="${sessionScope.SESSION_MB_NO == null }">
			<p class="gnb_user">&nbsp;&nbsp;방문해 주셔서 감사 합니다.</p>
			<p class="gnb_tnb">
			<span><a href="javascript:win_open('${WEB_ROOT }/member/loginForm.jsp', 'winidpw', 'scrollbars=yes,width=417,height=385,top=10,left=20')">로그인</a></span>&nbsp;|&nbsp;
			<span><a href="javascript:win_open('${WEB_ROOT }/member/idpwForm.jsp', 'winidpw', 'scrollbars=yes,width=417,height=385,top=10,left=20')">아이디/비밀번호 찾기</a></span>&nbsp;|&nbsp;
			<span><a href="${WEB_ROOT }/member/memberForm.jsp">회원가입</a></span>
			</p>
		</c:when>
		<c:otherwise>
			<p class="gnb_user" >&nbsp;&nbsp;<a href="${WEB_ROOT }/myshop/order/orderList.jsp"><font color="blue">${sessionScope.SESSION_MB_NAME }</font></a>  님 방문해 주셔서 감사 합니다.</p>
			<p class="gnb_tnb">
			<c:if test="${sessionScope.SESSION_MB_LEVEL == '10' }"><span><a href="${WEB_ROOT }/admin/goods/categoryList.jsp"><font color="#FF0000">관리자</font></a></span>&nbsp;|&nbsp;</c:if>
			<span><a href="javascript:logout()">로그아웃</a></span>&nbsp;|&nbsp;
			<span><a href="${WEB_ROOT }/cart/cartList.jsp">장바구니</a></span>&nbsp;|&nbsp;
			<span><a href="${WEB_ROOT }/notice/MyNoticeList.jsp">마이쇼핑</a></span>
			</p>
		</c:otherwise>
	</c:choose>
</div>

<div style="height: 12px; line-height: 1px; font-size: 1px;">&nbsp;</div>

<table width="900" border="0" align="center">
<tr>
	<td align="center"><a href="${WEB_ROOT }/"><img src="${WEB_ROOT }/img/main/dmyna_logo.jpg" /></a></td>
	<!-- <td align="right"></td> -->
</tr>
</table>

<div style="height:12px; line-height:1px; font-size:1px;">&nbsp;</div>
<%@ include file="/Dmyna/admin/menu.jsp" %>
<div style="height:12px; line-height:1px; font-size:1px;">&nbsp;</div>